﻿@model INSE6260.OnlineBanking.Service.Messaging.GetClientResponse
@{
    ViewBag.Title = "Client Detail";
}
<p>
    <div style="text-align:left">Branch Name: Concordia University 2011/2012</div>
    <p></p>
    <div style="text-align:left">Currency : USD</div>
</p>
<br />
<div>
@if (Model.Client != null)
{
    <table>
        <tr>
            <th>
                Account Type
            </th>
            <th>
                Account Number
            </th>
            <th>
                Balance
            </th>
        </tr>
        @foreach (var account in Model.Accounts)
        {
            <tr>
                <td>
                    @Html.ActionLink(@account.AccountTypeDiscription, "Index", new {controller = "TransactionHistory",  accountId = account.AccountId }) 
                </td>
                <td>
                    @Html.DisplayFor(modelItem => account.AccountNo)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => account.Balance)
                </td>
            </tr>
        }
    </table>
}
</div>